<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <!-- 数组混个眼熟 -->
    <script>
        var arr = [1,2,3,4,5,6,'abc',undefined];
        // 数组中可以包含多种类型的值
        console.log(arr[0]);
        arr[0] = 22;
        console.log(arr[0]);

        console.log(arr.length);

        for(var i = 0; i < arr.length; i ++){
            arr[i] += "白";
            console.log(arr[i]);
        }

    </script>

    <!-- 对象混个眼熟 -->
    <script type="text/javascript">
        // object
        var obj = {
            // key      value
            lastName: "deng", //属性值是重点，属性名只是为了找到数据
            age : 40,
            sex : 'male',
            wife : undefined,
            handsome : false
        };
        var zjt = {
            name: '张敬涛',
            sex: '女',
            birthday: 627,
            beautiful: true
        };

        console.log(obj.handsome);
        obj.handsome = true;
        console.log(obj.handsome);
    </script>
</body>
</html>